package com.zja.www.entity;

import java.sql.Timestamp;

public class MedicalRecord {
    private int id;
    private int userId;
    private int doctorId;
    private Timestamp recordTime;
    private String status;
    private String type; // "appointment"或"registration"

    // 状态常量
    public static final String TYPE_APPOINTMENT = "appointment";
    public static final String TYPE_REGISTRATION = "registration";
    public static final String STATUS_PENDING = "pending";
    public static final String STATUS_CONFIRMED = "confirmed";
    public static final String STATUS_CANCELLED = "cancelled";
    public static final String STATUS_COMPLETED = "completed";

    public MedicalRecord() {
    }

    public MedicalRecord(int id, int userId, int doctorId, Timestamp recordTime, String status, String type) {
        this.id = id;
        this.userId = userId;
        this.doctorId = doctorId;
        this.recordTime = recordTime;
        this.status = status;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(int doctorId) {
        this.doctorId = doctorId;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "MedicalRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", doctorId=" + doctorId +
                ", recordTime=" + recordTime +
                ", status='" + status + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
